package com.example.myapplication.SdkUse;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import com.example.myapplication.R;
import com.example.myapplication.JniJava.JNI;

public class SdkUseActivity extends AppCompatActivity implements View.OnClickListener {
    private String TAG = "SdkUseActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sdk_use);
        Button button = findViewById(R.id.gotosdk);
        button.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){

            case R.id.gotosdk:

                String result = new JNI().sayHello();
                System.out.println(result);
                // 打印JNI本地方法返回的字符串。
                Log.d(TAG, "the string from JNC C '"+result + "'");


//                Log.d(TAG,"jarSDK=========返回值01：");
//                //使用jarSDK
//                Jarlibrary.setvalue(194701211);
//                Log.d(TAG,"jarSDK=========返回值02：");
//                int value = Jarlibrary.getvalue();
//                Log.d(TAG,"jarSDK=========返回值03："+value);
//                //进入aarADK
//                Intent intent = new Intent(SdkUseActivity.this, CanvasSignActivity.class);
//                startActivity(intent);



                break;
        }
    }
}